// pages/abook/abook.js
var util = require('../../utils/util.js')
Page({
  data: {
    infos: [],
    imgUrls: [   'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg', 
    'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg',
      'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg'
    ],
    indicatorDots: false,
    autoplay: true,
    interval: 5000,
    duration: 1000
  },
  add: function () {
    wx.navigateTo({
      url: '../add/add'
    });
  },
  onShow: function () {
    this.show();
  },
  show: function () {
    this.setData({
      infos: wx.getStorageSync('INFOS').infos
    });
  }
})
